package com.liarjo.mywebsiteapi.controller.util;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.liarjo.mywebsiteapi.controller.util.captcha.UtilCaptchaRequest;
import com.liarjo.mywebsiteapi.controller.util.captcha.UtilCaptchaResult;

@RestController
@RequestMapping("/api/util")
public class UtilController {
    @Autowired
    private UtilService utilService;

    @GetMapping("/captcha")
    public UtilCaptchaResult captcha(UtilCaptchaRequest utilCaptchaRequest) {
        return utilService.captcha(utilCaptchaRequest);
    }
}
